The Accordion Pane Component > FAccordionPane.getContentAt() |
FAccordionPane.getContentAt()
Availability
Flash Player 6.
Usage
myAccordion_acp.getContentAt (index)
Parameters
index A number indicating the index of the section that the
content should be returned from.
Returns
A reference to the movie clip contained within the specified section index.
Description
Returns a reference to the movie clip contained within the specified section index. This makes it possible to manipulate, respond to events and call methods on the content within the accordion pane section.
Example
The accordion_example2.fla example file contains an example of using this method.
The following code adds a ListBox component to the accordion pane, and then uses getContentAt to call methods on the ListBox.
myAccordionPane_acp.addItem("Section 1", "FListBoxSymbol");
var mc = myAccordionPane_acp.getContentAt(0);
mc.addItem("A listbox item");